package com.klun.lianbiao;

import org.apache.commons.lang.StringUtils;

public class Node {

    public String value;
    public Node next;

    public Node(){

    }
    public Node(String value){
        this.value = value;
    }
    public boolean hasNext(){
        return null != this.next;
    }

    public static Node genList(){
        Node head = new Node();
        head.value = "1";
        head.next = new Node("2");
        head.next.next = new Node("3");
        head.next.next.next = new Node("4");
        head.next.next.next.next = new Node("5");
        head.next.next.next.next.next = new Node("6");
        return head;
    }
}
